import time

from selenium import webdriver
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium import webdriver  # 导入webdriver包
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC


# driver = webdriver.Chrome()
# driver.get('https://www.baidu.com')     #打开百度
# driver.find_element(By.ID,"kw").send_keys("梦幻西游")   #搜索关键词
# driver.find_element(By.ID,"su").click()     #点击搜索



dr = webdriver.Chrome()
dr.get('https://beta-actest.wesais.cn/#/login')
#点击第一个分类
# dr.find_elements(By.CLASS_NAME, 'navigation-right')[3].click()
#等待3秒
# time.sleep(1)
dr.find_element(By.CLASS_NAME,'el-input__inner').send_keys('末1')
dr.find_element(By.NAME,'password').send_keys('q12345678')
time.sleep(1)
# dr.find_element(By.CLASS_NAME, 'el-button').click()

element = dr.find_element(By.CLASS_NAME, 'el-button')
dr.execute_script("arguments[0].click();", element)

element = dr.find_element(By.CLASS_NAME, 'content ')
dr.execute_script("arguments[0].click();", element)

time.sleep(1)

webdriver.find_elm

webdriver.close()   #关闭浏览器
webdriver.quit()  #停止进程